﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Painter.Model
{
    public class TextCollection : Collection<string>
    {
        public List<string> mText;
        public List<System.Windows.Point> mPoint;

        public TextCollection() { }
        public TextCollection(IEnumerable<string> texts, IEnumerable<System.Windows.Point> points)
        {
            mText = texts.ToList();
            mPoint = points.ToList();
        }
        public void Add(string text, System.Windows.Point point)
        {
            mText.Add(text);
            mPoint.Add(point);
            base.Add(text);
        }
        public System.Windows.Point GetPoint(string text)
        {
            return mPoint[mText.IndexOf(text)];
        }
    }
}
